home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / ir / ircfiles.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-19  |  9.3 KB  |  280 lines

  1. /* Wide AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    Brewster@think.com
  6.  *
  7.  * $Log: ircfiles.h,v $
  8.  * Revision 1.5  1994/03/28  09:29:21  pfeifer
  9.  * Integrated Essence
  10.  *
  11.  * Revision 1.4  1994/03/08  21:06:16  pfeifer
  12.  * Patchlevel 04
  13.  *
  14.  * Revision 1.3  93/07/21  18:43:42  warnock
  15.  * added functions for indexing listserv archives and STELAR-specific stuff
  16.  * 
  17.  * Revision 1.2  93/07/19  16:31:58  warnock
  18.  * Added document type URL from Nathan.Torkington@vuw.ac.nz
  19.  * 
  20.  * Revision 1.1  1993/02/16  15:05:35  freewais
  21.  * Initial revision
  22.  *
  23.  * Revision 1.13  92/05/06  17:30:09  jonathan
  24.  * Added prototype for filename_finish_header_function.
  25.  * 
  26.  * Revision 1.12  92/04/25  21:13:47  brewster
  27.  * added ziff
  28.  * 
  29.  * Revision 1.11  92/03/22  18:38:42  brewster
  30.  * added objective C filter
  31.  * 
  32.  * Revision 1.10  92/02/20  09:50:01  jonathan
  33.  * Added bibtex and nhyp filters from S.P.vandeBurgt@research.ptt.nl.
  34.  * 
  35.  */
  36.  
  37. /* customizations for indexing specialize files */
  38.  
  39. #ifndef IRCFILES_H
  40. #define IRCFILES_H
  41.  
  42. #include "cdialect.h"
  43.  
  44. #ifdef __cplusplus
  45. /* declare these as C style functions */
  46. extern "C"
  47.     {
  48. #endif /* def __cplusplus */
  49. #ifdef FIELDS
  50. boolean fields_separator_function _AP((char *line));
  51. void fields_header_function _AP((char *line));
  52. void fields_finish_header_function _AP((char *header));
  53. long fields_date_function _AP((char *line));
  54. #endif
  55. #ifdef BIBDB
  56. /* formfeed seperated files */
  57. boolean formfeed_separator_function _AP((char *line));
  58. void formfeed_header_function _AP((char *line));
  59. void formfeed_finish_header_function _AP((char *header));
  60.  
  61. /* formfeed seperated files e.g. steve files */
  62. boolean bibdb_separator_function _AP((char *line));
  63. void bibdb_header_function _AP((char *line));
  64. void bibdb_finish_header_function _AP((char *header));
  65. long bibdb_date_function _AP((char *line));
  66.  
  67. /* irlist digest */
  68. boolean irlist_separator_function _AP((char *line));
  69. void irlist_header_function _AP((char *line));
  70. long irlist_date_function _AP((char *line));
  71.  
  72. /* formfeed seperated files e.g. bibinf */
  73. boolean bibinf_separator_function _AP((char *line));
  74. void bibinf_header_function _AP((char *line));
  75. void bibinf_finish_header_function _AP((char *header));
  76. long bibinf_date_function _AP((char *line));
  77. #endif
  78.  
  79. #ifdef STELAR
  80. /* stelar  -- aw3 */
  81. boolean stelar_separator_function _AP((char *line));
  82. void stelar_header_function _AP((char *line));
  83. void stelar_finish_header_function _AP((char *header));
  84.  
  85. /* AAS Meeting (LaTeX) abstracts files */
  86. boolean aasab_separator_function _AP((char *line));
  87. void aasab_header_function _AP((char *line));
  88. void aasab_finish_header_function _AP((char *header));
  89.  
  90. #endif /* STELAR */
  91.  
  92. #ifdef BIO
  93. /* genbank flat files -- dgg*/
  94. boolean genbank_separator_function _AP((char *line));
  95. void genbank_header_function _AP((char *line));
  96. void genbank_finish_header_function _AP((char *header));
  97. long genbank_date_function _AP((char *line));
  98.  
  99. /* embl flat files -- dgg*/
  100. boolean embl_separator_function _AP((char *line));
  101. void embl_header_function _AP((char *line));
  102. void embl_finish_header_function _AP((char *header));
  103. long embl_date_function _AP((char *line));
  104.  
  105. /* pir flat files -- dgg*/
  106. boolean pir_separator_function _AP((char *line));
  107. void pir_header_function _AP((char *line));
  108. void pir_finish_header_function _AP((char *header));
  109. long pir_date_function _AP((char *line));
  110.  
  111. /* prosite protein doc & dat files - dgg */
  112. boolean prositedoc_separator_function _AP((char *line));
  113. void prositedoc_header_function _AP((char *line));
  114. void prositedoc_finish_header_function _AP((char *header));
  115.  
  116. boolean prositedat_separator_function _AP((char *line));
  117. void prositedat_header_function _AP((char *line));
  118. void prositedat_finish_header_function _AP((char *header));
  119.  
  120. /* Bionet.journals table of contents format */
  121. boolean biojournal_separator_function _AP((char *line));
  122. void biojournal_header_function _AP((char *line));
  123. void biojournal_finish_header_function _AP((char *header));
  124.  
  125. /* drosophila redbook -dgg */
  126. boolean redbook_separator_function _AP((char *line));
  127. void redbook_header_function _AP((char *line));
  128. void redbook_finish_header_function _AP((char *header));
  129.  
  130. /* drosophila flybase -dgg */
  131. boolean flybase_separator_function _AP((char *line));
  132. void flybase_header_function _AP((char *line));
  133. void flybase_finish_header_function _AP((char *header));
  134.  
  135. boolean din_separator_function _AP((char *line));
  136. void din_finish_header_function _AP((char *header));
  137. void din_header_function _AP((char *line));
  138.  
  139. #endif /* BIO */
  140.  
  141. /* groliers encyclopedia */
  142. boolean groliers_separator_function _AP((char *line));
  143. void groliers_header_function _AP((char *line));
  144. void groliers_finish_header_function _AP((char *header));
  145.  
  146. /* unix mail and rmail files */
  147. boolean mail_separator_function _AP((char *line));
  148. boolean rmail_separator_function _AP((char *line));
  149. void mail_header_function _AP((char *line));
  150. void mail_finish_header_function _AP((char *header));
  151. boolean mail_or_rmail_separator _AP((char *line));
  152. long mail_date_function _AP((char *line));
  153.  
  154. /* mail digest files  */
  155. boolean mail_digest_separator_function _AP((char *line));
  156. boolean mh_bboard_separator_function _AP((char *line));
  157.  
  158. /* listserv digest files */
  159. boolean listserv_digest_separator_function _AP((char *line));
  160. void listserv_header_function _AP((char *line));
  161. long listserv_date_function _AP((char *line));
  162. void listserv_finish_header_function _AP((char *header));
  163.  
  164. /* library catalog files */
  165. boolean catalog_separator_function _AP((char *line));
  166. void catalog_header_function _AP((char *line));
  167. void catalog_finish_header_function _AP((char *header));
  168.  
  169. /* biology abstracts files */
  170. boolean bio_separator_function _AP((char *line));
  171. void bio_header_function _AP((char *line));
  172. void bio_finish_header_function _AP((char *header));
  173.  
  174. /* cm application files */
  175. boolean cmapp_separator_function _AP((char *line));
  176. void cmapp_header_function _AP((char *line));
  177. void cmapp_finish_header_function _AP((char *header));
  178.  
  179. /* jargon files */
  180. boolean jargon_separator_function _AP((char *line));
  181. void jargon_header_function _AP((char *line));
  182. void jargon_finish_header_function _AP((char *header));
  183.  
  184. /* internet resource guide */
  185. boolean irg_separator_function _AP((char *line));
  186. void irg_header_function _AP((char *line));
  187. void irg_finish_header_function _AP((char *header));
  188.  
  189. /* dash seperated files */
  190. boolean dash_separator_function _AP((char *line));
  191. void dash_header_function _AP((char *line));
  192. void dash_finish_header_function _AP((char *header));
  193.  
  194. /* one_line seperated files */
  195. boolean one_line_separator_function _AP((char *line));
  196. void one_line_header_function _AP((char *line));
  197. void one_line_finish_header_function _AP((char *header));
  198.  
  199. /* blank line seperated files (para) */
  200. boolean para_separator_function _AP((char *line));
  201. void para_header_function _AP((char *line));
  202. void para_finish_header_function _AP((char *header));
  203.  
  204. /* files from the Seeker system (dash separated, headline: marker) */
  205. boolean seeker_separator_function _AP((char *line));
  206. void seeker_header_function _AP((char *line));
  207. void seeker_finish_header_function _AP((char *header));
  208.  
  209. /* files from the Rlin system (dash separated, headline: marker) */
  210. boolean rlin_separator_function _AP((char *line));
  211. void rlin_header_function _AP((char *line));
  212. void rlin_finish_header_function _AP((char *header));
  213.  
  214. /* files saved by the RN newsreader */
  215. boolean rn_separator_function _AP((char *line));
  216.  
  217. /* The GNU Emacs Texinfo documentation system */
  218. boolean emacs_info_separator_function _AP((char *line));
  219. void emacs_info_header_function _AP((char *line));
  220. void emacs_info_finish_header_function _AP((char *headline));
  221.  
  222. /* files in medline format */
  223. boolean medline_separator_function _AP((char *line));
  224. void medline_header_function _AP((char *line));
  225. void medline_finish_header_function _AP((char *header));
  226.  
  227. /* files in refer format */
  228. boolean refer_separator_function _AP((char *line));
  229. void refer_header_function _AP((char *line));
  230. void refer_finish_header_function _AP((char *header));
  231.  
  232. /* first line of the file is the headline */
  233. boolean first_line_separator_function _AP((char *line));
  234. void first_line_header_function _AP((char *line));
  235. void first_line_finish_header_function _AP((char *header));
  236.  
  237. /* BibTeX files */
  238. boolean bibtex_separator_function _AP((char *line));
  239. void bibtex_header_function _AP((char *line));
  240. void bibtex_finish_header_function _AP((char *header));
  241.  
  242. /* hypertext files */
  243. boolean nhyp_separator_function _AP((char *line));
  244. void nhyp_header_function _AP((char *line));
  245. void nhyp_finish_header_function _AP((char *header));
  246.  
  247. #ifdef NeXT
  248. /* objective-C code */
  249. boolean wobjc_separator_function _AP((char *line));
  250. void wobjc_header_function _AP((char *line));
  251. void wobjc_finish_header_function _AP((char *header));
  252. #endif /* def NeXT */
  253.  
  254. /* Ziff files */
  255. boolean ziff_separator_function _AP((char *line));
  256. void ziff_header_function _AP((char *line));
  257. void ziff_finish_header_function _AP((char *header));
  258.  
  259. #ifdef ESSENCE
  260. /* CU-Boulder, Essence summaries, 10/8/92, hardy@cs.colorado.edu */
  261. boolean essence_separator_function _AP((char *line));
  262. void essence_header_function _AP((char *line));
  263. void essence_finish_header_function _AP((char *header));
  264.  
  265. #endif /* ESSENCE */
  266. void filename_finish_header_function _AP((char *header));
  267.  
  268.  
  269. char *cleanHeadline _AP((char *header));
  270. extern char *URL_prefix;
  271. extern char *URL_trim;
  272.  
  273.  
  274.  
  275. #ifdef __cplusplus
  276.     }
  277. #endif /* def __cplusplus */
  278.  
  279. #endif /* ndef IRCFILES_H */
  280.